From: Matthias Clasen Date: Thu, 24 Sep 2015 17:17:36 +0000 (-0400) Subject: shell_dbus_acquire_name: Don't leak the result X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1180 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3f0fbae7e213b2fbe7267b9d25ac7fcfaa8afcff;p=gnome-shell.git shell_dbus_acquire_name: Don't leak the result The GVariant returned by g_dbus_proxy_call_sync must be freed with g_variant_unref, to prevent a leak. --- diff --git a/src/main.c b/src/main.c index fb0ea4382..b33d4bfdc 100644 --- a/src/main.c +++ b/src/main.c @@ -75,6 +75,7 @@ shell_dbus_acquire_name (GDBusProxy *bus, exit (1); } g_variant_get (request_name_variant, "(u)", request_name_result); + g_variant_unref (request_name_variant); } static void